package com.dxysun.spring.parent;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.dxysun.spring.service.MyService;

public class SpringParentMain
{
    public static void main(String[] args)
    {
        ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext("spring-parent.xml");

        MyService myService = applicationContext.getBean("myService", MyService.class);

        System.out.println(myService.getAccountService().getName());
    }
}
